<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <title>svg</title>
</head>

<body>


  <svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg">

    <!-- circle是圆形标签 -->
    <circle cx="70" cy="50" r="40" stroke="black" stroke-width="2" fill="red" />
    <!-- rect是长方形标签 -->
    <rect x='120' width="100" height="100" style="fill:rgb(0,0,255);stroke-width:1;
stroke:rgb(0,0,0)" />
  </svg>


</body>

</html>